<template>
	<text class="market-icon u-font-12" :class="code">{{code == 'SZ' ? '深':'泸'}}</text>
</template>

<script>
	export default{
		props:{
			code:{
				type: String,
				default: 'SH'
			}
		}
	}
</script>

<style scoped>
	.market-icon{
		border-radius: 8rpx;
		background-color: #FF6600;
		padding: 2rpx 8rpx;
		color: #fff;
		font-weight: bold;
	}
	.market-icon.SZ{
		background-color: #007AFF;
	}
</style>
